<?php

namespace app\models\db;

use Yii;

/**
 * This is the model class for table "t_log".
 *
 * @property string $id
 * @property string $class
 * @property string $log
 * @property string $create_datetime
 */
class Log extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['log'], 'string'],
            [['create_datetime'], 'safe'],
            [['id'], 'string', 'max' => 36],
            [['class'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'class' => 'Class',
            'log' => 'Log',
            'create_datetime' => 'Create Datetime',
        ];
    }
}
